[IA64] protect ridblock_owner.
authorIsaku Yamahata <yamahata@valinux.co.jp>
Tue, 28 Oct 2008 05:31:58 +0000 (14:31 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Tue, 28 Oct 2008 05:31:58 +0000 (14:31 +0900)
commit73f908f4d6b77c3e6bd51c0c05d189e0f581f6a3
tree897425fdca2f697b25dafb678a049338c97027be
parente15e237c421d5e108a454a5835a8605802e9930b
[IA64] protect ridblock_owner.

protect ridblock_owner by spin lock.
deallocate_rid() is called by arch_domain_destroy() which
is called as rcu callback.
On the other hand allocate_rid() is called from domctl hypercall.
So the access to ridblock_owner is racy.
Protect it by spin lock.
So far probably xend serializes creating domains, so it hasn't
been caused issues.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/xen/regionreg.c